package com.study.uploadexcel.controller;

import com.study.uploadexcel.service.UploadExcelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.net.URLEncoder;

/**
 * @author weixiaochun
 */
@RestController
public class UploadExcelController {

    @Resource
    private UploadExcelService uploadExcelService;

    @GetMapping("/uploadExcel")
    public void uploadExcel(HttpServletResponse response) throws URISyntaxException, IOException {
        uploadExcelService.uploadExcel(response);


    }
}
